package br.com.massai.controller.listeners;

import org.hibernate.envers.RevisionListener;

import br.com.massai.model.entity.EntityRevision;

public class EntityRevisionListener implements RevisionListener {

	@Override
	public void newRevision(Object revisionEntity) {
		EntityRevision entity = (EntityRevision) revisionEntity;
		entity.setUsername("ADMINISTRADOR"); //TODO get user logged
	}
}